package com.sky.mapper;

import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: ShoppingCartMapper
 * Package: com.sky.mapper
 * Description:
 *
 * @Author JJQ
 * @create 2024/5/18 0018 19:37
 * @Version 1.0
 */
@Mapper
public interface ShoppingCartMapper {
    void insert (ShoppingCart shoppingCart);

    List<ShoppingCart> list (ShoppingCart shoppingCart);

    void update(ShoppingCart shoppingCart);

    @Delete("delete from shopping_cart where user_id = #{userId}")
    void delete(Long userId);
}
